import type { ApiDelete, PageApi } from '@/api/api'

export interface RoleAddDTO {
  name: string
  code: string
  dataScope: number
}

export interface RoleModDTO extends RoleAddDTO {
  id?: string
}

export interface RoleQueryDTO extends PageApi {
  name?: string
  code?: string
}
export interface Role extends RoleAddDTO, ApiDelete {
  tenantId: string
  tenantOnly: number
}
export interface M2rDTO {
  roleId: string
  menuIds: string[]
}
